
export default {
    namespaced:true,  //设置命名空间
    state:{
        //存放全局属性
        allchecked:false,
        deletedlines:"",
        total_rmb:0,
        basketlength:0
    },
    mutations:{
        //存放用于修改全局属性的方法是同步方法
        changeAllCheck(stats, bool){
            stats.allchecked = bool
        },

        changeTotalRmb(state, total_rmb){
            state.total_rmb = total_rmb
        },
        changeBasketlength(state, len){
            state.basketlength = len
        },
        changeDeleteLines(state, arr){
            state.deletedlines = arr.join(",")
        }
    },
    actions:{
        //存放的是异步方法传参
        changeTotalRmbSyce(contx, total_rmb){
            contx.commit("changeTotalRmb", total_rmb)
        }
    },
    getters:{
        //计算属性
    },




}